//
//  ViewController.m
//  Phone
//
//  Created by ideveloper on 2024/6/25.
//

#import "ViewController.h"
#import "IAPShare.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    
    if(![IAPShare sharedHelper].iap) {
        NSSet* dataSet = [[NSSet alloc] initWithObjects:
                          @"com.call.threemonths",
                          @"com.call.sixmonths",
                          @"com.call.twelvemonths",
                          nil];
        [IAPShare sharedHelper].iap = [[IAPHelper alloc] initWithProductIdentifiers:dataSet];
    }
    
    [IAPShare sharedHelper].iap.production = NO;
    
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    
    
    if(![IAPShare sharedHelper].iap) {
        NSSet* dataSet = [[NSSet alloc] initWithObjects:@"com.comquas.iap.test", nil];
        [IAPShare sharedHelper].iap = [[IAPHelper alloc] initWithProductIdentifiers:dataSet];
    }
    [IAPShare sharedHelper].iap.production = NO;
    
    [[IAPShare sharedHelper].iap requestProductsWithCompletion:^(SKProductsRequest* request,SKProductsResponse* response)
     {
        if(response > 0 ) {
            SKProduct* product =[[IAPShare sharedHelper].iap.products objectAtIndex:0];
            
            NSLog(@"Price: %@",[[IAPShare sharedHelper].iap getLocalePrice:product]);
            NSLog(@"Title: %@",product.localizedTitle);
            
            [[IAPShare sharedHelper].iap buyProduct:product onCompletion:^(SKPaymentTransaction* trans){
                
                if(trans.error)
                {
                    NSLog(@"Fail %@",[trans.error localizedDescription]);
                }
                else if(trans.transactionState == SKPaymentTransactionStatePurchased) {
                    
                    [[IAPShare sharedHelper].iap checkReceipt:[NSData dataWithContentsOfURL:[[NSBundle mainBundle] appStoreReceiptURL]] AndSharedSecret:@"your sharesecret" onCompletion:^(NSString *response, NSError *error) {
                        
                        //Convert JSON String to NSDictionary
                        NSDictionary* rec = [IAPShare toJSON:response];
                        
                        if([rec[@"status"] integerValue]==0)
                        {
                            
                            [[IAPShare sharedHelper].iap provideContentWithTransaction:trans];
                            NSLog(@"SUCCESS %@",response);
                            NSLog(@"Pruchases %@",[IAPShare sharedHelper].iap.purchasedProducts);
                        }
                        else {
                            NSLog(@"Fail");
                        }
                    }];
                }
                else if(trans.transactionState == SKPaymentTransactionStateFailed) {
                    NSLog(@"Fail");
                }
            }];//end of buy product
        }
    }];
    
    
    [[IAPShare sharedHelper].iap requestProductsWithCompletion:^(SKProductsRequest* request,SKProductsResponse* response)
         {
        
        SKProduct* product =[[IAPShare sharedHelper].iap.products objectAtIndex:0];
        NSLog(@"Price: %@",[[IAPShare sharedHelper].iap getLocalePrice:product]);
        NSLog(@"Title: %@",product.localizedTitle);
        
        NSLog(@"%@",request);
        NSLog(@"%@",response.products);

        [[IAPShare sharedHelper].iap buyProduct:product onCompletion:^(SKPaymentTransaction* transaction){
            switch (transaction.transactionState)
            {
                case SKPaymentTransactionStatePurchased:
                    NSLog(@"第一次购买订阅或者购买消耗性商品！！！");
                    break;
                case SKPaymentTransactionStateFailed:
                    NSLog(@"取消购买！！！");
                    break;
                case SKPaymentTransactionStateRestored:
                    NSLog(@"恢复购买！！！");
                default:
                    break;
            }
        }];
        
    }];
    
    NSString *reject = @"MIIikQYJKoZIhvcNAQcCoIIigjCCIn4CAQExDzANBglghkgBZQMEAgEFADCCEccGCSqGSIb3DQEHAaCCEbgEghG0MYIRsDAKAgEIAgEBBAIWADAKAgEUAgEBBAIMADALAgEBAgEBBAMCAQAwCwIBCwIBAQQDAgEAMAsCAQ8CAQEEAwIBADALAgEQAgEBBAMCAQAwCwIBGQIBAQQDAgEDMAwCAQoCAQEEBBYCNCswDAIBDgIBAQQEAgIAyzANAgEDAgEBBAUMAzEwMDANAgENAgEBBAUCAwJxZDANAgETAgEBBAUMAzEuMDAOAgEJAgEBBAYCBFAzMDIwGAIBBAIBAgQQ7usckkRa4J9qqpMDyBo44TAbAgEAAgEBBBMMEVByb2R1Y3Rpb25TYW5kYm94MBwCAQUCAQEEFJwyX3voWfIcrdUJT+OK8LfkcTtoMB4CAQwCAQ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1drk/NAJBzewdXUhMYIBtTCCAbECAQEwgYkwdTFEMEIGA1UEAww7QXBwbGUgV29ybGR3aWRlIERldmVsb3BlciBSZWxhdGlvbnMgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkxCzAJBgNVBAsMAkc1MRMwEQYDVQQKDApBcHBsZSBJbmMuMQswCQYDVQQGEwJVUwIQFeefzlJVCmUBfJHf5O6zWTANBglghkgBZQMEAgEFADANBgkqhkiG9w0BAQEFAASCAQCSvt8rvsz+/igIfHEYJlszYWzdUuHwv61ZQ4giKR1OO4646ax3VZQPT71pe72vWfiL9EpoxMka7XDOTZt6eF+lipBaM13zNISZiR8mUReygeMZWypHgh1XouVMkotcX3K++gIrIor8qlsvAN5jh5RJ3mg/m2flp0+V97NHWfg8auHY5gJ59we2gSpEfmd2Q+HDbjXx5vYpjzqfwoGUUj4k10wnrelo/zcau26JDv/KC2nQvIxmw39JPwykVhOdT3QKI7rnCsJBhkQ89i2QkKTLKEHp4NbLZ7M+01hk5gwdyW5mtGtp52qWvhfshHbi9wqU3dwP5JydHmVFsZbL32CT";
    
//    NSData *data = [reject dataUsingEncoding:NSUTF8StringEncoding];
//    [IAPShare.sharedHelper.iap checkReceipt:data onCompletion:^(NSString *response, NSError *error) {
//        NSLog(@"%@",response);
//    }];
}




@end
